package FALCON;

import java.util.Random;

public class FALCON1 extends FALCON {
    public double[][][] target_W;                                              // 目标网络权重


    public boolean[] newCode;                                                  // 判断是否为新结点

    public int use_buff = 0;                                                       // 是否使用buff
    public int view = 2;                                                           // 没用
    static Random ran;                                                           // 随机值

    public FALCON1(int agent_num, int numState, int numAction, boolean rw, String name) {
        super(agent_num, numState, numAction, rw, name);
        ran = new Random();
        ran.setSeed(seed);

        this.numState = numState;                                                  // 状态数
        this.numAction = numAction;                                                // 动作数

        numInput = new int[numSpace];   //// numSpace:0-State 1-Action 2-Reward 
        numInput[0] = numState;                                                  // 
        numInput[1] = numAction;                                                 // 
        numInput[2] = numReward;                                                 //

        I = new double[numSpace][];
        for (int i = 0; i < numSpace; i++)
            I[i] = new double[numInput[i]];                                      // 实体化对象


        T = new double[capacity];
        N = new int[capacity];
    }


}